package com.itheima.service;

import com.itheima.entity.dto.order.OrderSaveDto;
import com.itheima.entity.dto.order.OrderStatusDto;
import com.itheima.entity.vo.order.OrderPageVo;
import com.itheima.entity.vo.order.OrderUserPageVo;

import java.util.Date;

/**
 * @author huangzelnag
 * @create 2022-05-12
 */
public interface OrderService {

    /**
     * 分页条件查询订单
     * @param beginTime
     * @param endTime
     * @param number
     * @param page
     * @param pageSize
     * @return
     */
    OrderPageVo getOrderPage(Date beginTime, Date endTime, String number, Integer page, Integer pageSize);

    /**
     * 修改订单状态
     * @param orderStatusDto
     * @return
     */
    Boolean upOrderStatus(OrderStatusDto orderStatusDto);

    /**
     * 提交订单
     * @param orderSaveDto
     * @return
     */
    Boolean saveOrder(OrderSaveDto orderSaveDto);

    /**
     * 获取用户分页订单
     * @param page
     * @param pageSize
     * @return
     */
    OrderUserPageVo getOrderUserPage(Integer page, Integer pageSize);
}
